// import InputConverter from '../input/InputConverter';

export const ACTION_SET = ["GameControl"];
export const DIGITALS = ["A", "Y", "X", "B", "LB", "RB", "LT", "RT", "Menu", "Up", "Left", "Down", "Right", "View"];
export const ANALOGS = ["Move", "Look"];
//steam键值 根据DIGITALS 的顺序得来
export enum SteamKeyCode {
    A,          // A 0
    Y,        // Y 1
    X,        // X2
    B,    // B3
    LB,    // LB4
    RB,   // RB5
    LT,  // LT6
    RT,  // RT7
    Menu,     // Menu8
    Up,      // 上9
    Left,   // 左10
    Down,   // 下 11
    Right,   // 右12
    View,//13
    ROCKER_LEFT,
    ROCKER_RIGHT,
}
// /**
//  * 摇杆对应的值
//  */
// let STEAM_ROCKER_CODE = {

// }


export let STEAM_DIR_LIST: SteamKeyCode[] = [SteamKeyCode.Up, SteamKeyCode.Down, SteamKeyCode.Left, SteamKeyCode.Right]
//八个方向对应的的steam的键值
export let STEAM_KEY_LIST: SteamKeyCode[][] = [
    [SteamKeyCode.Right, SteamKeyCode.Up],
    [SteamKeyCode.Up],
    [SteamKeyCode.Left, SteamKeyCode.Up],
    [SteamKeyCode.Left],
    [SteamKeyCode.Left, SteamKeyCode.Down],
    [SteamKeyCode.Down],
    [SteamKeyCode.Down, SteamKeyCode.Right],
    [SteamKeyCode.Right],
]

export let STEAM_KEY_CODE = {
    A: SteamKeyCode.A,
    Y: SteamKeyCode.Y,
    X: SteamKeyCode.X,
    B: SteamKeyCode.B,
    LB: SteamKeyCode.LB,
    RB: SteamKeyCode.RB,
    LT: SteamKeyCode.LT,
    RT: SteamKeyCode.RT,
    Menu: SteamKeyCode.Menu,
    Up: SteamKeyCode.Up,
    Left: SteamKeyCode.Left,
    Down: SteamKeyCode.Down,
    Right: SteamKeyCode.Right,
    View: SteamKeyCode.View,
    ROCKER_LEFT: SteamKeyCode.ROCKER_LEFT,
    ROCKER_RIGHT: SteamKeyCode.ROCKER_RIGHT,
}